package com.rem.designPattern.facade外观;

/**
 * @author Rem
 * @date 2022-11-17
 */
public class DVDPlayer {
    private static final DVDPlayer PLAYER = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return PLAYER;
    }

    public void on() {
        System.out.println("打开DVD播放器...");
    }

    public void off() {
        System.out.println("关闭DVD播放器...");
    }

    public void play() {
        System.out.println("播放DVD播放器...");
    }

    public void pause() {
        System.out.println("暂停DVD播放器...");
    }
}